<template>
	<!-- 电能 -->
	<view class="electricityData">
		<view class="itemBox">
			<view class="itemBox_item">
				<!-- kWhImp -->
				<view class="item_name">正向有功电能:</view><view class="item_num">{{itemObj.kWhImp}}KWh</view>
			</view>
			<view class="itemBox_item">
				<view class="item_name">反向有功电能:</view><view class="item_num">{{itemObj.kWhExp}}KWh</view>
			</view>
			<view class="itemBox_item">
				<view class="item_name">有功电能净值:</view><view class="item_num">{{itemObj.kWhNet}}KWh</view>
			</view>
			<view class="itemBox_item">
				<view class="item_name">有功电能总和:</view><view class="item_num">{{itemObj.kWhTot}}KWh</view>
			</view>
			<view class="itemBox_item">
				<view class="item_name">正向无功电能:</view><view class="item_num">{{itemObj.kvarhImp}}kvarh</view>
			</view>
			<view class="itemBox_item">
				<view class="item_name">反向无功电能:</view><view class="item_num">{{itemObj.kvarhExp}}kvarh</view>
			</view>
			<view class="itemBox_item">
				<view class="item_name">无功电能净值:</view><view class="item_num">{{itemObj.kvarhNet}}kvarh</view>
			</view>
			<view class="itemBox_item">
				<view class="item_name">无功电能总和:</view><view class="item_num">{{itemObj.kvarhTot}}kvarh</view>
			</view>
			<view class="itemBox_item">
				<view class="item_name">视在电能:</view><view class="item_num">{{itemObj.kVAh}}kVAh</view>
			</view>
			
			
			
		</view>
		
	</view>
</template>

<script setup>
	import {
		
		defineProps
	} from 'vue'
	const props = defineProps({
		itemObj:Object
	});
</script>

<style lang="scss">
	.electricityData{
		padding: 34rpx 32rpx;
		box-sizing: border-box;
		.itemBox{
			&_item{
				padding: 30rpx 0;
				box-sizing: border-box;
				display: flex;
				justify-content: space-between;
				align-items: center;
				border-bottom: 1rpx solid  #EFEFEF;
				.item_name{
					font-size: 24rpx;
					color: #333;
				}
				.item_num{
					font-size: 28rpx;
					color: #000;
				}
			}
			.itemBox_item:last-child {
				padding: 30rpx 0;
				box-sizing: border-box;
				display: flex;
				justify-content: space-between;
				align-items: center;
				border-bottom: 0rpx solid  #EFEFEF;
				.item_name{
					font-size: 24rpx;
					color: #333;
				}
				.item_num{
					font-size: 28rpx;
					color: #000;
				}
			}
		}
		
	}
</style>